@use "sass:color";
@use "vars";

.app_container {
  position: absolute;

  display: flex;
  flex-flow: column;

  width: 100%;
  height: 100%;
  overflow: hidden;

  color: vars.$grey;

  animation: init vars.$long-duration ease-in-out;
}

@keyframes init {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.panel_container {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-flow: row;

  height: 0;
}

.navbar {
  z-index: 20;

  display: flex;
  flex-flow: row;
  align-items: center;

  height: 50px;

  background-color: vars.$background;
  box-shadow:
    0px 5px 5px 0px rgba(0, 0, 0, 0.18),
    0px 5px 20px 0px rgba(0, 0, 0, 0.09);
}

.navbar_spacer {
  height: 100%;
  flex: 1 1 45%;
  -webkit-app-region: drag;
}

.left_panel {
  z-index: 11;

  display: flex;
  flex: 0 0 auto;
  flex-flow: column;

  width: 300px;

  background-color: vars.$background;
  box-shadow:
    5px 0px 5px 0px rgba(0, 0, 0, 0.18),
    5px 0px 20px 0px rgba(0, 0, 0, 0.09);
}

.center_panel {
  flex: 1 1 auto;
  width: 0;

  background-color: vars.$background;
}

.right_panel {
  z-index: 10;

  display: flex;
  flex: 0 0 auto;
  flex-flow: column;

  width: 300px;

  background-color: vars.$background;
  box-shadow:
    -5px 0px 5px 0px rgba(0, 0, 0, 0.18),
    -5px 0px 20px 0px rgba(0, 0, 0, 0.09);
}

.footer {
  z-index: 20;

  display: flex;
  overflow-y: hidden;
  flex: 0 0 auto;
  flex-flow: column;

  width: 100%;
  max-width: 100%;

  background-color: vars.$background3;
  box-shadow:
    0px -5px 5px 0px rgba(0, 0, 0, 0.18),
    0px -10px 20px 0px rgba(0, 0, 0, 0.09);
}

.footer_horizontal {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-flow: row;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.track_info_wrapper {
  display: flex;
  flex: 1 1 33%;
  flex-flow: row;
  overflow: hidden;
}

.version_string {
  text-align: center;
  color: vars.$bglight;
}

.active_nav_link {
  color: vars.$white !important;
  border-left: 0.5rem solid vars.$green;
}

.sidebar_menus {
  display: flex;
  flex-flow: column;
  flex: 1 1 auto;
  overflow: auto;
  height: 0;
}

.sidebar_footer {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em;

  a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: vars.$background2;
    color: vars.$white !important;
    width: 2rem;
    height: 2rem;

    &:hover {
      background: color.adjust(vars.$background2, $lightness: 10%);
    }

    &:active {
      background: color.adjust(vars.$background2, $lightness: 20%);
    }
  }
}
